package org.jeecg.modules.dock.entity.nest;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 套裁请求通用实体
 *
 * @author zhoutong
 */
@ApiModel(value = "套裁请求通用实体", description = "套裁请求通用实体")
@Data
public class NestBaseRequestVO implements Serializable {
    private List<Body> body;
    private Header header;
    @Data
    public static class Body {
        @NotNull
        @NotBlank
        @ApiModelProperty("任务编号")
        private String taskCode;

        @NotNull
        @NotBlank
        @ApiModelProperty("卷料,条料批次号")
        private String batchCode;

        @ApiModelProperty("状态:待执行-已拣货-星智装车复核-普天装车复核-调入地入库-调入地待移库-已完成")
        private String status;

        @ApiModelProperty("更新人")
        private String operatorName;

        @ApiModelProperty("更新时间")
        @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN, timezone = "GMT+8")
        @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
        private Date operateTime;
    }
    @Data
    public static class Header {

        private String app;

        private String code;

        private String seqNo;
    }
}
